package uk.co.cocking.getinline2.pipeline.transformers;

import java.util.List;

import uk.co.cocking.getinline2.exceptions.EnvironmentException;
import uk.co.cocking.getinline2.pipeline.io.CouldNotProcessRecordException;

public interface Transformer<IncomingType, OutgoingType> {

	List<OutgoingType> open() throws EnvironmentException;
	List<OutgoingType> transform(IncomingType incomingItem) throws CouldNotProcessRecordException;
	List<OutgoingType> close() throws EnvironmentException;

}
